Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: define normalize_state_ids() for QRules #111

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Apr 26, 2024

Imported relabel_edge_ids() as normalize_state_ids() and improves the logics a bit. This makes AmpForm-DPD also compatible with AmpForm v0.14.

import qrules
from ampform_dpd.adapter.qrules import normalize_state_ids

reaction = qrules.generate_transitions(
    initial_state="D0",
    final_state=["K0", "K-", "K+"],
)
reaction = normalize_state_ids(reaction)

@redeboer redeboer added the ✨ Feature New feature added to the package label Apr 26, 2024
@redeboer redeboer added this to the 0.1.7 milestone Apr 26, 2024
@redeboer redeboer self-assigned this Apr 26, 2024
@redeboer redeboer enabled auto-merge (squash) April 26, 2024 19:10
@redeboer redeboer merged commit 80e3e6d into ComPWA:main Apr 26, 2024
19 checks passed
@redeboer redeboer deleted the normalize_state_ids branch April 26, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant